// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.update-streams-v2 {
  @_top: update-streams-v2;
  padding: 20px (@gutter-v2 - 5px);
  background-color: @osu-colour-b5;

  @media @desktop {
    padding-left: (@gutter-v2-desktop - 5px);
    padding-right: (@gutter-v2-desktop - 5px);
  }

  &__container {
    display: flex;
    flex-wrap: wrap;
    width: max-content;
    max-width: 100%;
  }

  &__item {
    .link-plain();
    .link-white();
    padding: 5px;

    width: 100px;
    display: block;
    will-change: opacity;

    &--featured {
      width: 200px;
    }
  }

  &__bar {
    display: block;
    margin-bottom: 5px;
    width: 100%;
    height: 4px;
    border-radius: 400px;
    will-change: transform;

    .@{_top}__container:hover &,
    .@{_top}--with-active & {
      transform: scaleY(0.5);
      opacity: 0.5;
    }

    .@{_top}__item:hover &,
    .@{_top}__item--active &,
    .@{_top}__container:hover .@{_top}__item--active & {
      transform: scaleY(1);
      opacity: 1;
    }
  }

  &__row {
    margin: 0;

    &--name {
      font-size: @font-size--normal;
      font-weight: bold;
    }

    &--users {
      font-size: @font-size--small;
      color: @osu-colour-f1;
    }

    &--version {
      font-size: @font-size--title-small-3;
      font-weight: 300;
    }

    .@{_top}__container:hover &,
    .@{_top}--with-active & {
      opacity: 0.5;
    }

    .@{_top}__item:hover &,
    .@{_top}__item--active & {
      opacity: 1;
    }
  }
}
